<?php
/* @var $this BackendMenuController */
/* @var $data Menu */
?>

<tr>
    <td class="text-center"><input type="checkbox" class="icheckbox_minimal-blue" name="selection[]" value="<?=$data->id?>"></td>
    <td><?php echo CHtml::encode($data->name); ?></td>
    <td class="text-center"><i class="<?php echo CHtml::encode($data->icon); ?>"></i></td>
    <td><?php echo CHtml::encode($data->url); ?></td>
    <td class="text-center"><?php echo CHtml::encode($data->sort); ?></td>
    <td><span class="label <?php if($data->is_display===1){echo'label-danger';}else{echo'label-success';}?>"><?php echo Constants::getYesNoItems($data->is_display); ?></span></td>
    <td><?php echo date('Y-m-d H:i',$data->created_at); ?></td>
    <td><?php echo date('Y-m-d H:i',$data->updated_at); ?></td>
    <td>
        <a href="<?=$this->createUrl('create')?>" class="btn btn-sm btn-default"><i class="fa fa-plus"></i> 创建</a>
        <a href="<?=$this->createUrl('view',array('id'=>$data->id))?>" class="btn btn-sm btn-default"><i class="fa fa-eye"></i> 查看</a>
        <a href="<?=$this->createUrl('update',array('id'=>$data->id))?>" class="btn btn-sm btn-info"><i class="fa fa-edit"></i> 编辑</a>
        <a href="<?=$this->createUrl('delete',array('id'=>$data->id))?>" class="btn btn-sm btn-danger"><i class="fa fa-trash"></i> 删除</a>
    </td>
</tr>
